<template>
  <div class="FcTimePicker">
    <!--  :default-value 和attrs里面的"23:44:22"冲突，不能接收字符串，所以设置位空  -->
    <!--  :default-value 优先级要比 attrs里面的高  -->

    <el-time-picker v-bind="attrs" v-model="showValue" :default-value="undefined" :default-time="undefined"/>
  </div>
</template>
<script setup name="FcTimePicker">
const attrs = useAttrs();
const emit = defineEmits(['update:modelValue'])
const props = defineProps({
  modelValue: {
    type: String,
    default: ''
  }
})
const showValue = computed({
  get() {
    return props.modelValue
  },
  set(val) {
    emit('update:modelValue',
        val)
  }
})
</script>
<style scoped lang="scss">
.FcTimePicker {
}
</style>
